Fix xm create -F. This can't be very widely used, because it looks like it's
authorEwan Mellor <ewan@xensource.com>
Tue, 5 Sep 2006 16:26:20 +0000 (17:26 +0100)
committerEwan Mellor <ewan@xensource.com>
Tue, 5 Sep 2006 16:26:20 +0000 (17:26 +0100)
been broken for ages!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/create.py

index 6416aaab3f75fb008a81d473e703ef74d07a318d..bfff93de47df641be89479c2f3aaed1f3789953f 100644 (file)
@@ -1169,6 +1169,9 @@ def main(argv):
     if not opts:
         return
 
+    if type(config) == str:
+            config = sxp.parse(file(config))[0]
+
     if opts.vals.dryrun:
         PrettyPrint.prettyprint(config)
     else: